package router

import (
	"github.com/gin-gonic/gin"
	"project_api/intrenal/api"
	"project_api/intrenal/middleware"
)

func VideoRouter(c *gin.RouterGroup) {
	videoRouter := c.Group("video").Use(middleware.MiddleWare())
	{
		videoRouter.POST("upload", api.Upload)
		videoRouter.POST("create", api.Create)
		videoRouter.GET("list", api.List)
	}
}
